import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/home'
import platform from '@/views/system/platform'
import login from '@/views/Login'
import test from '@/views/test'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: index,
      children: [
        {
          path: '/system',
          name: 'system',
          component: test
        },
        {
          path: '/platform',
          name: 'platform',
          component: test
        }
      ]
    },
    {
      path: '/login',
      name: 'index',
      component: login
    },
    {
      path: '/system-log',
      name: 'log',
      component: platform
    },
    {
      path: '/system-platform',
      name: 'hello',
      component: platform
    }
  ]
})
